package cn.eonshine.cuba.inf.modular.biz.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * Tanker GPS统计表
 * </p>
 *
 * @author Alan
 * @since 2018-07-28
 */
@TableName("inf_tanker_gps_statistics")
public class TankerGpsStatistics extends Model<TankerGpsStatistics> {

    private static final long serialVersionUID = 1L;

    /**
     * primary key 主键
     */
    @TableField(exist = false)
    private String id;
    @TableId("vessel_id")
    private BigDecimal vesselId;
    @TableField("avg_draught")
    private BigDecimal avgDraught;
    /**
     * Boolean: True, False
     */
    @TableField("avg_speed")
    private BigDecimal avgSpeed;
    /**
     * Boolean: True, False
     */
    @TableField("max_draught")
    private BigDecimal maxDraught;
    @TableField("max_speed")
    private BigDecimal maxSpeed;
    @TableField("min_draught")
    private BigDecimal minDraught;
    /**
     * Data collection status 数据采集状态
     */
    @TableField("LSMS_UPDATE")
    private BigDecimal lsmsUpdate;
    /**
     * Data input datetime 数据更新时间
     */
    @TableField("DATA_INPUT_DATETIME")
    private Date dataInputDatetime;

    public BigDecimal getVesselId() {
        return vesselId;
    }

    public void setVesselId(BigDecimal vesselId) {
        this.vesselId = vesselId;
    }

    public BigDecimal getAvgDraught() {
        return avgDraught;
    }

    public void setAvgDraught(BigDecimal avgDraught) {
        this.avgDraught = avgDraught;
    }

    public BigDecimal getAvgSpeed() {
        return avgSpeed;
    }

    public void setAvgSpeed(BigDecimal avgSpeed) {
        this.avgSpeed = avgSpeed;
    }

    public BigDecimal getMaxDraught() {
        return maxDraught;
    }

    public void setMaxDraught(BigDecimal maxDraught) {
        this.maxDraught = maxDraught;
    }

    public BigDecimal getMaxSpeed() {
        return maxSpeed;
    }

    public void setMaxSpeed(BigDecimal maxSpeed) {
        this.maxSpeed = maxSpeed;
    }

    public BigDecimal getMinDraught() {
        return minDraught;
    }

    public void setMinDraught(BigDecimal minDraught) {
        this.minDraught = minDraught;
    }

    @Override
    protected Serializable pkVal() {
        return this.vesselId;
    }

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	public BigDecimal getLsmsUpdate() {
		return lsmsUpdate;
	}

	public void setLsmsUpdate(BigDecimal lsmsUpdate) {
		this.lsmsUpdate = lsmsUpdate;
	}

	public Date getDataInputDatetime() {
		return dataInputDatetime;
	}

	public void setDataInputDatetime(Date dataInputDatetime) {
		this.dataInputDatetime = dataInputDatetime;
	}

	@Override
    public String toString() {
        return "TankerGpsStatistics{" +
        ", vesselId=" + vesselId +
        ", avgDraught=" + avgDraught +
        ", avgSpeed=" + avgSpeed +
        ", maxDraught=" + maxDraught +
        ", maxSpeed=" + maxSpeed +
        ", minDraught=" + minDraught +
        "}";
    }
}
